package com.ytjj.qmyx.users.model;

import java.io.Serializable;
import java.util.Date;

public class UsersCouponRelation implements Serializable {
    private Integer id;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer usersId;

    /**
     * 优惠券id
     *
     * @mbg.generated
     */
    private Integer usersCouponId;

    /**
     * 是否主动领取过（0：否，1：是）
     *
     * @mbg.generated
     */
    private Byte activeReceiveFlag;

    /**
     * 是否使用(0:未使用，1：使用)
     *
     * @mbg.generated
     */
    private Byte useFlag;

    /**
     * 使用类型
     *
     * @mbg.generated
     */
    private String useType;

    /**
     * 使用时间
     *
     * @mbg.generated
     */
    private Date useTime;

    /**
     * 过期时间
     *
     * @mbg.generated
     */
    private Date overdueTime;

    /**
     * 领取时间
     *
     * @mbg.generated
     */
    private Date receiveTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUsersId() {
        return usersId;
    }

    public void setUsersId(Integer usersId) {
        this.usersId = usersId;
    }

    public Integer getUsersCouponId() {
        return usersCouponId;
    }

    public void setUsersCouponId(Integer usersCouponId) {
        this.usersCouponId = usersCouponId;
    }

    public Byte getActiveReceiveFlag() {
        return activeReceiveFlag;
    }

    public void setActiveReceiveFlag(Byte activeReceiveFlag) {
        this.activeReceiveFlag = activeReceiveFlag;
    }

    public Byte getUseFlag() {
        return useFlag;
    }

    public void setUseFlag(Byte useFlag) {
        this.useFlag = useFlag;
    }

    public String getUseType() {
        return useType;
    }

    public void setUseType(String useType) {
        this.useType = useType;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public Date getOverdueTime() {
        return overdueTime;
    }

    public void setOverdueTime(Date overdueTime) {
        this.overdueTime = overdueTime;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", usersId=").append(usersId);
        sb.append(", usersCouponId=").append(usersCouponId);
        sb.append(", activeReceiveFlag=").append(activeReceiveFlag);
        sb.append(", useFlag=").append(useFlag);
        sb.append(", useType=").append(useType);
        sb.append(", useTime=").append(useTime);
        sb.append(", overdueTime=").append(overdueTime);
        sb.append(", receiveTime=").append(receiveTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}